﻿using BDRUtils.CustomAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace VisionCloud.Domain.DtoModel.MiniApp
{
    public class TaskDotCloudBatchRequestDto
    {
        /// <summary>
        /// 任务站点批次列表
        /// </summary>
        [Required, MinLength(1)] public List<TaskIndexBatchDto> TaskBatchList { get; set; } = new List<TaskIndexBatchDto>();
    }

    public class TaskIndexBatchDto
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        [GuidRequired] public Guid TaskId { get; set; }

        /// <summary>
        /// 站点数组
        /// </summary>
        [Required, MinLength(1)] public int[] IndexArr { get; set; }
    }
}
